

<template>
    <div class="storeInfo supplier">
        <div class="head">
            <p class="headTxt">
                <span>门店：{{store.name}}</span>
                <span style="margin-left:10px">编号：{{store.store_key}}</span>
            </p>
            
        </div>
        <!-- <p style="line-height:30px;padding-left:20px;margin-top:8px;color:#333" v-if="form.order_id == ''">最近{{total}}笔人工退款订单记录</p> -->
        <!-- table -->
        <div class="tabContainer_SI tabContainer">
            <el-table :data="tableData" stripe style="width: 100%;text-align:center" >
                <!-- 序号	档位	赠送金额	商品(优惠券)	档位说明	更新时间	操作				 -->
                <el-table-column prop="name" label="安装包名称" fixed >
                    
                </el-table-column>
                <el-table-column label="下载地址">
                    <template slot-scope="scope">
                        <a v-if="scope.row.download == '1'" :href="scope.row.url" style="color:blue">点击下载</a>
                        <img v-else-if="scope.row.download == '0'" :src="scope.row.url" alt="" style="width:80px;height:80px" @click="bigimg(scope.row.url)">
                    </template>
                </el-table-column>

            </el-table>                       
        </div>
        <el-dialog :visible.sync="add_edit_show" class="business" style="text-align:center;">
            <img :src="url" alt="" style="width:320px;height:320px;margin-bottom:20px;">
        </el-dialog>
    </div>
</template>

<style lang="scss">
.supplier{
        .el-dialog{
            .el-dialog__body{
                min-height: 300px;

            }
        } 
    }
  .tabContainer_SI{
      .el-table{
          .cell{
              text-align: center;
          }
      }
  }
</style>

<script>
import Vue from 'vue';
import { abc } from "../../../../js/abc.js";
import {potUrl} from '../../../../js/config_url.js'; 
export default {
    data () {
    return {
        tableData:[
            {name:"包房程序安装包",url:abc.downloadUrl + '/store_packages/aimei_room_installer' + abc.downloadSuffix + '.exe',download:"1"},
            {name:"前台程序安装包",url:abc.downloadUrl + '/store_packages/ktv_agent_server_installer' + abc.downloadSuffix + '.exe',download:"1"},
            {name:"魅KTV暖场音乐播放器",url:abc.downloadUrl + '/ktv_player/aimei_player_installer' + abc.downloadSuffix + '.exe',download:"1"},
            {name:"门店pad收银系统",url:"https://img.meiktv.com/pad/meiktv_pad.png",download:"0"},
        ],
        add_edit_show:false,
        url:'',
        store:{}
    }
  }, 
  mounted(){
      const that = this;
      that.store = JSON.parse(abc.getSession('store')) 
      console.log(that.store)
  },
  methods:{
      bigimg(a){
          const that = this;
          that.url = a;
          that.add_edit_show = true;
      }
  }
}
</script>
